﻿<%@ include file="../include/top.jsp"%>

<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#96b0d5">
  <tr>
    <td height="25" align="center" valign="middle" background="${baseURL}/images/blue_line02.jpg" bgcolor="#FFFFFF"><table width="98%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="20" align="left" valign="middle">&nbsp;</td>
        <td align="left" valign="middle"><img src="${baseURL}/images/bit_01.png" width="16" height="14" border="0" align="absmiddle" />&nbsp;<a href="#" class="a2_blue" onclick="window.location = 'addNode.nut?treeId=${formdata.treeId}';">添加节点</a>&nbsp;&nbsp;&nbsp;&nbsp;
		<img src="${baseURL}/images/bit_01.png" width="16" height="14" border="0" align="absmiddle" />&nbsp;<a href="#" class="a2_blue" onclick="window.location = 'listAllNode.nut?treeId=${formdata.treeId}';">全部节点</a>&nbsp;&nbsp;&nbsp;&nbsp;
		<img src="${baseURL}/images/bit_01.png" width="16" height="14" border="0" align="absmiddle" />&nbsp;<a href="#" class="a2_blue" onclick="window.location = 'listTree.nut';">返回分类树列表</a></td>
      </tr>
    </table></td>
  </tr>
</table>

<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
  <tr>
    <td height="5" colspan="2"></td>
  </tr>
	<form name="searchForm" action="" method="get">
	<input type="hidden" name="p" value="1" />
	<input type="hidden" name="treeId" value="${formdata.treeId}" />
    <tr>
      <td height="20" align="left" valign="middle">&nbsp;&nbsp;<img src="${baseURL}/images/009.png" width="16" height="16" align="absmiddle" />&nbsp;搜索条件：&nbsp;节点名称：
        <input type="text" name="name"
			value="${formdata.name}" size="15" />
        &nbsp;&nbsp;&nbsp;节点代码：
        <input type="text" name="code"
			value="${formdata.code}" size="15" /></td>
      <td width="25%" align="left" valign="middle" class="STYLE6"><input name="image" type="image" id="Image8" onmouseover="MM_swapImage('Image8','','${baseURL}/images/button_ss_a.jpg',1)" onmouseout="MM_swapImgRestore()" src="${baseURL}/images/button_ss.jpg"/>
      <img src="${baseURL}/images/button_qk.jpg" name="clearButton" id="clearButton" style="cursor:pointer" onclick="clearInput()" onmouseover="MM_swapImage('clearButton','','${baseURL}/images/button_qk_a.jpg',1)" onmouseout="MM_swapImgRestore()"/></td>
    </tr>
  </form>
  <tr>
    <td height="5" colspan="2"></td>
  </tr>
  <tr>
    <td height="1" colspan="2" bgcolor="#A6CAE8"></td>
  </tr>
  <tr>
    <td height="5" colspan="2" class="text_gray2"></td>
  </tr>
</table>
<script>
	function clearInput() {
		searchForm.name.value = "";
		searchForm.code.value = "";
	}
</script>

<c:if test="${empty obj.list}">
<div align="center"><b>没有符合条件的记录。</b></div>
</c:if>

<c:if test="${not empty obj.list}">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" id="listOutTable">
  <tr>
    <td colspan="2" align="left" valign="middle" class="text_gray2"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#96bee2">
      <tr>
        <td height="21" background="${baseURL}/images/table_bg.jpg">&nbsp;&nbsp;<span class="text_blue_b"><img src="${baseURL}/images/008.png" width="16" height="16" align="absmiddle" />&nbsp;节点列表：（${formdata.treeName}）</span></td>
      </tr>
      <tr>
        <td height="13" align="center" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF" id="listTable">
	<tr align="center" bgcolor="#eeeeee">
		<td width="30%">节点名称</td>
		<td width="12%">节点代码</td>
		<td width="30%">父节点</td>
		<td width="10%">标准数量</td>
		<td>操作</td>
	</tr>
	<c:forEach var="oneRow" items="${obj.list}">
		<tr align="center">
			<td align="left">${oneRow.levelName}</td>
			<td>${oneRow.code}</td>
			<td>${oneRow.pName}</td>
			<td>0</td>
			<td>
			<a href="editNode.nut?nodeId=${oneRow.id}">编辑</a>
			<a href="deleteNode.nut?nodeId=${oneRow.id}" onclick="return confirm('确认删除？');">删除</a> </td>
		</tr>
	</c:forEach>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="5" colspan="2"></td>
  </tr>
  <tr>
    <td height="1" colspan="2" bgcolor="#A6CAE8"></td>
  </tr>
  <tr>
    <td height="25" colspan="2"><%@ include file="../include/listpage.jsp"%>
    </td>
  </tr>
  <tr>
    <td height="1" colspan="2" bgcolor="#A6CAE8"></td>
  </tr>
</table>
<script>
	function openLinkWin(nodeId) {
		url = "linkStand.nut?isLink=N&nodeId="+nodeId;
		window.open(url, "linkWin", "width=800,height=600");
	}
</script>
</c:if>
<%@ include file="../include/bottom.jsp"%>